## --------------------------------------------------------------------
## ykit DemoStrategyCDW
## --------------------------------------------------------------------


    set(SOURCES_files_SourceFiles
      openctp.cpp	  
      main.cpp	  
      CDWAppImpl.cpp	  
      CDWApp.cpp	  
      openctp_common.h	  
      openctp.h	  
      common.h	  
      CDWApp.h	   
	  )
    source_group("Source Files" FILES ${SOURCES_files_SourceFiles})

    set(SOURCES_SourceFiles
      ${SOURCES_files_SourceFiles}
    )


  set(SOURCES_
    ${SOURCES_SourceFiles}
  )

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/FGE26/inc)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/StrategyCDW)

  if(WIN32)	
   SET(CMAKE_CXX_FLAGS_DEBUG "/MDd /Z7 /Od")
   SET(CMAKE_CXX_FLAGS_RELEASE "/MD /O2")
   SET(CMAKE_CXX_FLAGS_MINSIZEREL "/MD /O2")
   SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MDd /Z7 /Od")
endif(WIN32)

SET(ProjectName DemoStrategyCDW)

#MESSAGE(STATUS "This is BINARY dir " ${${ProjectName}_BINARY_DIR}) 
#MESSAGE(STATUS "This is SOURCE dir " ${${ProjectName}_SOURCE_DIR}) 
#SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib)
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/FGE26/lib/windows)
SET(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:\"LIBCMTD.lib\")

ADD_EXECUTABLE(${ProjectName} ${SOURCES_})
#Add_Definitions(-DSTRATEGYARBITRAGEA_EXPORTS)
Add_Definitions(-DUNICODE -D_UNICODE)

#ADD_DEPENDENCIES(${ProjectName} FAStrategyPlatform)
TARGET_LINK_LIBRARIES(${ProjectName} FuelAppD FuelCoreD FAStrategyPlatform)

if(NOT WIN32)
add_definitions(-D_PORT_VERSION -Wno-deprecated  -fPIC)
if(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Release" OR "MinSizeRel" OR "RelWithDebInfo")
add_definitions(-DNDEBUG)
endif(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Release" OR "MinSizeRel" OR "RelWithDebInfo")
endif(NOT WIN32)
